package com.zdb.demo.design.principle.openclose;

public class Test {
    public static void main(String[] args) {
        ICourse javaCourse = new JavaCourse(96, "java", 348d);
        System.out.println( javaCourse.print());

        JavaDiscountCourse javaDiscountCourse = new JavaDiscountCourse(96, "java", 348d);
        System.out.println(javaDiscountCourse.getDiscountPrice());
    }
}
